Two metrics for evaluating agents whose behavior varies between runs. They look similar; they answer opposite questions. Picking the right one is a product decision, not a math one.


The Problem

Agent runs are non-deterministic. The same task can succeed on one trial and fail on the next. A single pass/fail number hides this. Two metrics make the variance visible.

If you only run one trial per task, you miss this entirely; some tasks will succeed flakily, others will fail flakily, and a small change in either could move your “score” without telling you anything real.


Definitions

pass@k — at least one success in k attempts

The probability the agent solves the task in at most k tries.

  • Rises with k. More shots on goal → higher chance at least one lands.
  • pass@1 is the per-trial success rate.
  • Used heavily in coding evals: in many code workflows we only care that the agent eventually finds a working solution.

pass^k — every one of k attempts succeeds

The probability the agent solves the task on all k consecutive trials.

  • Falls with k. Harder bar to clear with more trials.
  • If per-trial success rate is p, then pass^k = p^k. At p=0.75, k=3, pass^k ≈ 42%.
  • Used for customer-facing reliability, where users expect the agent to behave the same way every time.

How They Diverge

At k=1 the two metrics are identical (both equal the per-trial success rate). They diverge as k grows.

  • pass@k → 100% (almost any non-trivial agent eventually succeeds at something)
  • pass^k → 0% (consistency across many trials is brutal)

By k=10 they tell opposite stories about the same agent.


Which to Use

Match the metric to the product, not to convention.

UsePickWhy
Code agent that proposes; human reviews and acceptspass@kOne success is enough; reviewer filters out the misses
Code agent that auto-merges or auto-deployspass^kA single failure causes a real outage
Research agent producing an answer the user verifiespass@kOne good answer is fine; user sees it once
Customer support agent talking directly to userspass^kEvery conversation needs to land; one failed refund is a complaint
Computer use agent driving a critical workflowpass^kRepeated reliability is the product
Brainstorming agent proposing optionspass@kMany options is a feature, not a bug

A Practical Note

You need k ≥ 5 trials per task before either metric stops being noisy. Below that, pass@k is too generous (one lucky success), pass^k is too punishing (one unlucky failure).

For early-stage evals on a small budget, run k=3 and accept the noise; for serious capability claims, k=5–10. Above k=10 the marginal information per trial drops fast; spend the budget on more tasks instead.